package com.google.code.tretris.server;

import com.google.code.tretris.events.IPCClient;
import com.google.code.tretris.events.MoveEvent;

interface TretrisServer {
	boolean isPlayInProgress() ;
	boolean isStarted() ;
	boolean startPlay() ;
	boolean isLoggedIntoNetwork() ;
	boolean LogIntoNetworkAs(in String username, in String password) ;
	boolean invitePlayer(in String username) ;
	void sendMovement(in MoveEvent moveEvent);
	int getNumberOfPlayers() ;
	void registerClient(in int clientUID, in IPCClient client) ;
	void unregisterClient(in int clientUID, in IPCClient client) ;
}